define
(        
    function()
    {        
        // result can be one of ["identify", "recognized", "error"]
        var JoinDocumentResponse = function(result, doc, sessionId, error)
        {
            this.toJSON = function()
            {
                return {result: result, document: doc, sessionId: sessionId, error: error};
            }
        };

        JoinDocumentResponse.prototype.id = JoinDocumentResponse.id = "JoinDocumentResponse";        
        return JoinDocumentResponse;
    }
);